package com.example.demo.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 *  表定义层。
 *
 * @author zql
 * @since 2024-02-05
 */
public class SoftTableDef extends TableDef {

    /**
     * 
     */
    public static final SoftTableDef SOFT = new SoftTableDef();

    
    public final QueryColumn ID = new QueryColumn(this, "id");

    
    public final QueryColumn STAR = new QueryColumn(this, "star");

    
    public final QueryColumn UUID = new QueryColumn(this, "uuid");

    
    public final QueryColumn GIT_URL = new QueryColumn(this, "git_url");

    
    public final QueryColumn SOFT_ID = new QueryColumn(this, "soft_id");

    
    public final QueryColumn SOFT_NAME = new QueryColumn(this, "soft_name");

    
    public final QueryColumn CREATED_AT = new QueryColumn(this, "created_at");

    
    public final QueryColumn LANGUAGES = new QueryColumn(this, "languages");

    
    public final QueryColumn UPDATED_AT = new QueryColumn(this, "updated_at");

    
    public final QueryColumn OFFICIAL_URL = new QueryColumn(this, "official_url");

    
    public final QueryColumn SOFT_VERSION = new QueryColumn(this, "soft_version");

    
    public final QueryColumn MAIN_LANGUAGE = new QueryColumn(this, "main_language");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, SOFT_NAME, SOFT_VERSION, GIT_URL, OFFICIAL_URL, MAIN_LANGUAGE, LANGUAGES, STAR, UUID, SOFT_ID, CREATED_AT, UPDATED_AT};

    public SoftTableDef() {
        super("", "tb_soft");
    }

}
